package com.lzy.system.dictManage.dto;

/**
 * description: 字段数据修改 <br>
 * date: 2024/1/5 下午1:01 <br>
 * author: lcc <br>
 * version: 1.0 <br>
 */

import com.lzy.validator.StringMinMaxConstraint;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * @author lcc
 * @description TODO
 * @since 2024/1/5 下午1:01
 **/
@Getter
@Setter
@Accessors(chain = true)
@ApiModel(value = "字典数据对象", description = "字典数据修改dto")
public class SysDicValueUpdateDto {

    @ApiModelProperty("字典id")
    @NotBlank(message = "字典id不能为空")
    private String id;
    @ApiModelProperty("字典key")
    @StringMinMaxConstraint(min = 1,max = 100,message = "字典key长度必须在1-100之间")
    private String dic_key;

    @ApiModelProperty("字典值")
    @StringMinMaxConstraint(min = 1,max = 100,message = "字典值长度必须在1-200之间")
    private String dic_value;
}

